export const statList = [
	{
		title: '徒弟数',
		key: 'apprenticeNum',
		subTitle: '7'
	},
	{
		title: '有效徒弟数',
		key: 'effectiveApprenticeNum',
		subTitle: '7'
	},
	{
		title: '徒孙数',
		key: 'discipleNum',
		subTitle: '7'
	}
]

export const tableHeadList = [
	{
		title: '注册时间',
		flex: 2
	},
	{
		title: '徒弟',
		flex: 2
	},
	{
		title: '状态',
		flex: 1
	}
]

export function addStatToList(list = [], stat = {}) {
	list.map((item, index) => {
		item.subTitle = stat[item.key] || 0
	})

	return list
}
